home *** CD-ROM | disk | FTP | other *** search
- #!/bin/sh
- #
- # A simple shell script to test stk and BLT without installing it
- #
-
- if [ -x ./stk-bin -o -f blt.so ]
- then
- STKDIR=..
- else
- if [ -x ../stk-bin -o -f ../blt.so ]
- then
- STKDIR=../..
- fi
- fi
-
- STK_LIBRARY=$STKDIR/Lib
- STK_LOAD_PATH=$STKDIR/STklos:$STKDIR/STklos/Tk:$STKDIR/STklos/Tk/Composite:$STK_LIBRARY:$STKDIR/Extensions:..
-
- export STK_LIBRARY STK_LOAD_PATH
-
- if [ -x ./stk-bin ]
- then
- binary=./stk-bin
- else
- if [ -x ../stk-bin ]
- then
- binary=../stk-bin
- else
- binary=$STKDIR/Src/stk-bin
- fi
- fi
- echo "Interpreter used $binary"
- exec $binary $*
-
-
-